package com.glory.good_dark.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author yi.zhang
 * @date 2019/6/27
 * @desc 不良实体类
 */
public class DefectEntity implements Serializable {

    private List<DefectInfo> DEFECTLIST;

    public List<DefectInfo> getDEFECTLIST() {
        return DEFECTLIST == null ? new ArrayList<DefectInfo>() : DEFECTLIST;
    }

    public void setDEFECTLIST(List<DefectInfo> DEFECTLIST) {
        this.DEFECTLIST = DEFECTLIST;
    }

    public static class DefectInfo implements Serializable
    {
        private String DEFECTNAME;

        private String DEFECTTYPE;

        public int getQTY() {
            return QTY;
        }

        public void setQTY(int QTY) {
            this.QTY = QTY;
        }

        private int  QTY;


        public String getDEFECTNAME() {
            return DEFECTNAME == null ? "" : String.valueOf(DEFECTNAME);
        }

        public void setDEFECTNAME(String DEFECTNAME) {
            this.DEFECTNAME = DEFECTNAME;
        }

        public String getDEFECTTYPE() {
            return DEFECTTYPE == null ? "" : String.valueOf(DEFECTTYPE);
        }

        public void setDEFECTTYPE(String DEFECTTYPE) {
            this.DEFECTTYPE = DEFECTTYPE;
        }

    }
}
